package com.shigen.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shigen.shop.entity.Address;
import com.shigen.shop.req.AddressReq.AddAddressReq;
import com.shigen.shop.vo.AddressVO;
import java.util.List;

/**
 * @author shigenfu
 * @description 针对表【address(电商-公司收发货地址表)】的数据库操作Service
 * @createDate 2022-07-24 14:29:47
 */
public interface AddressService extends IService<Address> {

  /**
   * 根据userId获得地址
   * @param userId
   * @return
   */
  List<AddressVO> getAddressByUserId(Long userId);

  int addAddress(AddAddressReq addressReq);

  int deleteAddressByUserId(Long userId);
}
